#include <unistd.h>

size_t align_to_page_size(size_t size) {
    size_t page_size;
    page_size = sysconf(_SC_PAGESIZE);
    return (((~(page_size-1))&size) + page_size);
}


void poison_mem (void* ptr, size_t size)
{
    size_t i;
    char* symb = (char*)ptr;
    for (i = 0; i < size; i++) {
        symb[i] = 0x5a;
    }
}




